<template>
  <div class="detail-box-content">
    <van-row class="count-warp">
      <van-col span="24" class="line">
        <van-row justify="space-between">
          <van-col span="12">手机号
          </van-col>
          <van-col span="12" class="right">{{Customer.mobile}}</van-col>
        </van-row>
      </van-col>
      <van-col span="24">
        <van-row justify="space-between" class="line">
          <van-col span="12">QQ号</van-col>
          <van-col span="12" class="right">{{Customer.qq}}</van-col>
        </van-row>
      </van-col>
      <van-col span="24">
        <van-row justify="space-between" class="line">
          <van-col span="12">微信号
          </van-col>
          <van-col span="12" class="right">{{Customer.weixin}}</van-col>
        </van-row>
      </van-col>
      <van-col span="24">
        <van-row justify="space-between" class="line">
          <van-col span="12">邮箱
          </van-col>
          <van-col span="12" class="right">{{Customer.email}}</van-col>
        </van-row>
      </van-col>
      <van-col span="24">
        <van-row justify="space-between">
          <van-col span="12">公众号
          </van-col>
          <van-col span="12" class="right">{{Customer.account}}</van-col>
        </van-row>
      </van-col>
    </van-row>
  </div>
</template>
<script>
import { reactive, computed, onMounted, ref } from 'vue'
import { useStore } from "vuex";
import { useRouter } from "vue-router"
import { listByCustomer } from "@/api/public";
export default {

  setup() {
    const store = useStore();
    const router = useRouter()
    const user_info = computed(() => {
      return store.getters.user_info
    })

    onMounted(() => {
      onload()
    })
    const formData = reactive({
      null: false
    })
    const Customer = ref({})
    const onload = () => [
      listByCustomer().then(res => {
        Customer.value = res.data.data
      })
    ]
    return {
      formData,
      user_info,
      onload,
      Customer
    }
  }
}
</script>
<style lang="less" scoped>
.detail-box-content {
  .title {
    padding: 30px;
    background: #32363a;
    display: flex;
    color: white;
    align-items: center;
    justify-content: space-between;
    h2 {
      margin: 0;
      font-weight: normal;
    }
    &:deep(.van-icon) {
      font-weight: normal;
      font-size: 0.6rem;
    }
    &:deep(.van-icon-label-o) {
      margin-right: 20px;
    }
    a {
      color: #ffc569;
      font-weight: 400;
      font-size: 30px;
    }
  }
  .count-warp {
    margin: 30px;
    padding: 0.5rem 30px;
    background: #282a2c;
    border: 1px solid #ffffff;
    border-radius: 13px;
    color: #fff;
    font-size: 30px;
    font-weight: 400;
    .line {
      border-bottom: 1px solid #999;
      padding-bottom: 0.5rem;
      margin-bottom: 0.5rem;
    }
    .right {
      text-align: right;
    }
  }
}
</style>